enum FFDateTimeUtilResult {
  equal, // 相等
  increase, // 递增
  decrease, // 递减
}

class FFDateTimeUtil {

  //比较时间
  static FFDateTimeUtilResult difference(DateTime start, DateTime end) {
    int diffInDays = end.difference(start).inDays;
    if (diffInDays == 0) {
      if (start.day == end.day) { //排除 2023-03-04 11:11:11   2023-03-05 00:00:00
        // print("start==end");
        return FFDateTimeUtilResult.equal;
      }
      // print("end 在后");
      return FFDateTimeUtilResult.increase;

    } else if (diffInDays > 0) {
      // print("end 在后");
      return FFDateTimeUtilResult.increase;
    } else {
      // print("end 在前");
      return FFDateTimeUtilResult.decrease;
    }

  }
}
